import { request } from "./request";
//收藏店铺列表接口
const selectFavoriteMerchant = (params) => {
    return request('/dpsc/selectFavoriteMerchant', params, 'POST')
  }
//地址列表查询接口
const selectUserAddRessList = (params) => {
  return request('/address/selectUserAddRessList', params, 'GET')
}

//地址增加接口
const insertUserAddRess = (params) => {
  return request('/address/insertUserAddRess', params, 'POST')
}

//地址编辑接口
const updateUserAddRess = (params) => {
  return request('/address/updateUserAddRess', params, 'POST')
}

//地址删除接口
const deleteUserAddRess = (params) => {
  return request('/address/deleteUserAddRess', params, 'DELETE')
}

//获取验证码接口
const replaceMobilePhone = (params) => {
  return request('/grzx/replaceMobilePhone', params, 'GET')
}
//获取验证码更换
const Sms = (params) => {
  return request('/Login/Sms', params, 'GET')
}
//更改手机号接口
const updateMobilePhone = (params) => {
  return request('/grzx/updateMobilePhone', params, 'GET')
}

//退出登录接口
const logOff = (params) => {
  return request('/grzx/logOff', params, 'GET')
}

//订单列表接口
const getUserOrderList = (params) => {
  return request('/app/common/getUserOrderList', params, 'POST')
}


//累计评论列表
const selectEvaluateUser = (params) => {
  return request('/sjmk/selectEvaluateUser', params, 'GET')
}

//查询用户
const selectUser = (params) => {
  return request('/grzx/selectUser', params, 'POST')
}

//更改用户
const updateUser = (params) => {
  return request('/grzx/updateUser', params, 'POST')
}

//删除评论
const delectEvaluate = (params) => {
  return request('/sjmk/delectEvaluate', params, 'DELETE')
}

//删除订单
const delOrder = (params) => {
  return request('/app/common/delOrder', params, 'DELETE')
}

//注销账号
const logout = (params) => {
  return request('/grzx/logout', params, 'GET')
}
//物流
const queryLogistics = (params) => {
  return request('/Logistics/queryLogistics', params, 'POST')
}
//确认收货
const confirmReceiveNFCP = (params)=>{
  return request('/nfcporder/confirmReceiveNFCP',params,'POST')
}
export {
    selectFavoriteMerchant,
    selectUserAddRessList,
    insertUserAddRess,
    updateUserAddRess,
    deleteUserAddRess,
    replaceMobilePhone,
    updateMobilePhone,
    logOff,
    getUserOrderList,
    selectUser,
    updateUser,
    selectEvaluateUser,
    delectEvaluate,
    delOrder,
    logout,
    queryLogistics,
    Sms,
    confirmReceiveNFCP
}  